package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {

	@Test
	public void nonEmptyContactCreation() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().initContactCreation();
		ContactData contact = new ContactData();
		contact.firstname = "Milla";
		contact.lastname = "Jovovich";
		contact.webaddress = "www.milla.com";
		contact.homePhone = "32012345678";
		contact.mobilePhone = "131256987452";
		contact.workPhone = "3331256985";
		contact.email = "mila@gmail.com";
		contact.email2 = "None";
		contact.dayOfBirth = "17";
		contact.monthOfBirth = "December";
		contact.yearOfBirth = "1975";
		contact.newGroup = "Home";
		contact.phone2 = "3125632569855";
		contact.address = "Los Angeles";
		app.getContactHelper().fillContactForm(contact);
		app.getContactHelper().submitContactForm();
		app.getContactHelper().returnToMainPage();
	}

	@Test
	public void emptyContactCreation() throws Exception {
		app.getNavigationHelper().openMainPage();
		app.getContactHelper().initContactCreation();
		app.getContactHelper().submitContactForm();
		app.getContactHelper().returnToMainPage();
	}

}
